<?php
	class participants
	{
		var $id_projects, $id_users, $permission;
		
		public function __construct($id_projects)
		{
			global $db;

			$results = $db->query("select * from users where id_projects='".$id_projects."'");
			
			$this->id_projects = (int) $id_projects;
			
			while($data = $db->fetch($results))
			{
				$this->id_users[] = $data["id_users"];
				$this->permission[] = explode(':',$data['permission']);
			}
			
		}
	}
?>